package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.oldplayerreturn.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * @author ：zfr
 * @date ：2021/12/6 14:44
 */
public class OldPlayerReturnBusiness {
    public static Map<Integer, OldPlayerReturnEventConfig> getEventConfigMap(int activityId) {
        return DaoHelper.getOldPlayerReturnConfigDaoImpl().getEventConfigMap(activityId);
    }

    public static Map<Long, Map<Integer, OldPlayerReturnUserData>> getUserDataMap() {
        return DaoHelper.getOldPlayerReturnUserDataDaoImpl().getUserDataMap();
    }

    public static boolean addUserData(OldPlayerReturnUserData data) {
        return DaoHelper.getOldPlayerReturnUserDataDaoImpl().add(data);
    }

    public static boolean updateUserData(OldPlayerReturnUserData data) {
        return DaoHelper.getOldPlayerReturnUserDataDaoImpl().update(data);
    }

    public static Map<Long, Map<Integer, OldReturnWhite>> selectOldReturnWhiteMap() {
        return DaoHelper.getOldPlayerReturnUserDataDaoImpl().selectOldReturnWhiteMap();
    }

    public static Map<Integer, OldPlayerReturnShopLimit> getShopAddLimitMap(long userId){
        return DaoHelper.getOldPlayerReturnShopLimitDaoImpl().getOldPlayerReturnShopLimit(userId);
    }

    public static boolean addOldPlayerReturnShopLimit(OldPlayerReturnShopLimit data){
        return DaoHelper.getOldPlayerReturnShopLimitDaoImpl().add(data);
    }

    public static boolean updateOldPlayerReturnShopLimit(OldPlayerReturnShopLimit data){
        return DaoHelper.getOldPlayerReturnShopLimitDaoImpl().update(data);
    }

    public static Map<Integer, List<OldPlayerReturnDayLoginTaskConfig>> getOldPlayerReturnDayLoginTaskConfigMap (int activityId){
        return DaoHelper.getOldPlayerReturnConfigDaoImpl().getOldPlayerReturnDayLoginTaskConfigList(activityId);
    }

    public static Map<Integer,OldPlayerReturnTaskRewardData> getOldPlayerReturnTaskRewardData(int activityId,long userId){
        return DaoHelper.getOldPlayerReturnTaskRewardDataDaoImpl().getOldPlayerReturnTaskRewardData(activityId,userId);
    }
    public static boolean addOldPlayerReturnTaskRewardData(OldPlayerReturnTaskRewardData data){
        return DaoHelper.getOldPlayerReturnTaskRewardDataDaoImpl().add(data);

    }

    public static boolean updateOldPlayerReturnTaskRewardData(OldPlayerReturnTaskRewardData data){
        return DaoHelper.getOldPlayerReturnTaskRewardDataDaoImpl().update(data);
    }


}
